const BASE_URL = process.env.VUE_APP_BASE_URL
const baseUrl = BASE_URL+ '/mall/product/';
const addClassify = baseUrl+ 'category/add';
const updateClassify = baseUrl + 'category/update';
const removeClassify = baseUrl + 'category/remove';
const getChildClassify = baseUrl + 'category/selectTree';
const getAllClassify = baseUrl + 'category/all'

const goodsList = baseUrl + 'page';
const publishGoods = baseUrl + 'publish';
const removeGoods = baseUrl + 'remove';
const addInfo = baseUrl + 'info/add';
const updateInfo = baseUrl + 'info/update';
const getInfo = baseUrl + 'info/select ';

const goodsMediaList = baseUrl + 'album/selectList';
const addGoodsMedia = baseUrl + 'album/add';
const updateGoodsMedia = baseUrl + 'album/update';
const removeGoodsMedia = baseUrl + 'album/remove';

const addGoodsImageText = baseUrl + 'detail/add';
const updateGoodsImageText = baseUrl + 'detail/update';
const selectGoodsImageText = baseUrl + 'detail/selectContent';

const addAttrs = baseUrl + 'attr/add';
const removeAttrs = baseUrl + 'attr/remove';
const selectAttrs = baseUrl + 'attr/selectList';
const selectSpec = baseUrl + 'attr/selectSpec';

const skuList = baseUrl + 'sku/selectList';
const saveSku = baseUrl + 'sku/save';
const updateSku = baseUrl + 'sku/update/sku';
const removeSku = baseUrl + 'sku/remove';

const searchSku = baseUrl + 'edit/sku';

//评价
const evaluatePage = baseUrl + 'comment/page';
const queryEvaluate = baseUrl + 'comment/detail';
const removeEvaluate = baseUrl + 'comment/remove';

const queryReplyEvaluate = baseUrl + 'comment/reply/queryById';
const saveReplyEvaluate = baseUrl + 'comment/reply/save';
const removeReplyEvaluate = baseUrl + 'comment/reply/remove';

//修改库存
const skuInventoryPage = baseUrl + 'alert/sku'
export default{
  addClassify, updateClassify, removeClassify, getChildClassify, getAllClassify,
  goodsList, publishGoods, removeGoods,
  addInfo, updateInfo, getInfo,
  goodsMediaList, addGoodsMedia, updateGoodsMedia, removeGoodsMedia,
  addGoodsImageText, updateGoodsImageText, selectGoodsImageText,
  addAttrs, removeAttrs, selectAttrs, selectSpec,
  skuList, saveSku, updateSku, removeSku,
  searchSku,
  evaluatePage, queryEvaluate, removeEvaluate,
  queryReplyEvaluate, saveReplyEvaluate, removeReplyEvaluate,
  skuInventoryPage
}
